﻿jQuery(function () {
    jQuery("#login").validate({
        expression: "if (VAL) return true; else return false;",
        message: "Please enter the Name"
    });
    jQuery("#username").validate({
        expression: "if (VAL) return true; else return false;",
        message: "Please enter the Name"
    });
    jQuery("#password").validate({
        expression: "if (VAL) return true; else return false;",
        message: "Please enter the Current Password"
    });
    jQuery("#cpassword").validate({
        expression: "if (VAL.length > 5 && VAL) return true; else return false;",
        message: "Please enter a valid Password"
    });
    jQuery("#c_pass").validate({
        expression: "if ((VAL == jQuery('#ValidPassword').val()) && VAL) return true; else return false;",
        message: "Confirm password field doesn't match the password field"
    });
    jQuery('.AdvancedForm').validated(function () {
        alert("Use this call to make AJAX submissions.");
    });

});